<?php
require_once ('odal/node.php');


/**
 * @version 1.0
 * @created 27-Dez-2003 21:35:22
 */
class odal_DatatypeEnumeration extends odal_Node{

	var $m_datatype;
	var $m_use;

	function odal_DatatypeEnumeration( &$datatype, $id, $name, $use, $creatingDate = null, $creater = 0, $modifyingDate = null, $modifier = 0 ){
		$this->_createDatatypeEnumeration( $datatype, $id, $name, $use, $creatingDate, $creater, $modifyingDate, $modifier );
	}//odal_DatatypeEnumeration

	function _createDatatypeEnumeration( &$datatype, $id, $name, $use, $creatingDate, $creater, $modifyingDate, $modifier ){
		$this->m_datatype =& $datatype;
		$this->m_id = $id;
		$this->m_name = $name;
		$this->m_use = $use;
		$this->m_creatingDate = $creatingDate;
		$this->m_creater = $creater;
		$this->m_modifyingDate = $modifyingDate;
		$this->m_modifier = $modifier;
	}//_createDatatypeEnumeration
	
	function isMandatory(){
		return ( $this->m_use == "1" ) ? true : false;
	}//isMandatory

	function &getDatatype(){
		return $this->m_datatype;
	}//getDatatype
	

}//odal_DatatypeEnumeration
?>